package ru.nsu.fit.iconveyor.conveyor;

/**
 * Base class for items of conveyor - nodes and channels
 */
public abstract class Element {
    private final String id;

    protected Element(String id) {
        if(id == null) {
            throw new IllegalArgumentException();
        }
        this.id = id;
    }

    public String getId() {
        return id;
    }
}
